package com.wy.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: wy
 * @Date:2019/10/30 19:11
 */
@Component
public class MyListener {
         //监听队列
          @RabbitListener(queues = "item_queue")
        public void  listener(String message){
            System.out.println("消息为:"+message);
        }
}
